package com.henu.engineer.dao.mapper;

import com.henu.engineer.dao.entity.CultivatingGoal;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author noexcept
 * @date 2021/7/26 13:59
 */
@Mapper
@Repository
public interface CultivatingGoalXmlMapper {

    boolean insertCultivatingGoal(CultivatingGoal goal);

    int insertCultivatingGoals(List<CultivatingGoal> goals);

    boolean deleteCultivatingGoal(String id);

    int deleteCultivatingGoalsByVersion(String version);

    boolean updateContentById(String id);

    boolean updateById(CultivatingGoal goal);

    CultivatingGoal selectCultivatingGoalById(String id);

    List<CultivatingGoal> selectCultivatingGoalByVersion(String version);

    List<CultivatingGoal> selectCultivatingGoalBySpec(String specialization);

    List<CultivatingGoal> selectCultivatingGoalBySpecAndVersion(String spec, String version);
}
